package com.googlecode.jvmpart;

/**
 * Listener interface for the processing of a jvm process.  Implementations
 * of this interface will be notified before and after a jvm process executed
 * and completed
 * 
 * @author chunzhan.he
 *
 */
public interface ProcessListener {
	/**
	 * Notified before a jvm process executed.
	 * The usual aim is to set a vm argument and so on
	 * @param threadExecution the context of the monitor thread
	 */
	public void beforeProcess(ProcessExecution threadExecution);
	/**
	 * Notified after a jvm process completed.
	 * You can do something when a jvm process is completed,
	 * not need to wait for all jvm processed completed
	 * @param threadExecution the context of the monitor thread
	 */
	public void afterProcess(ProcessExecution threadExecution);
}
